﻿using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace TeamResourceManageAssist
{
	public partial class MainPage : UserControl
	{
		CreateNewProjectWindow wnd_CreateNewPrj = new CreateNewProjectWindow();
		public MainPage()
		{
			// Required to initialize variables
			InitializeComponent();
			wnd_CreateNewPrj.Closed += new System.EventHandler(wnd_CreateNewPrj_Closed);
		}
		
		/// <summary>
		/// 建立新工程窗口关闭后的回调函数
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void wnd_CreateNewPrj_Closed(object sender, System.EventArgs e)
		{
            if (wnd_CreateNewPrj.DialogResult == true)
            {
            }
            else
            {
            }
		}

		private void Button_Click(object sender, System.Windows.RoutedEventArgs e)
		{
            text1.Text = tabcontrol.SelectedItem.ToString();
		}

        private void CreateProj(object sender, RoutedEventArgs e)
        {
            wnd_CreateNewPrj.tb_ProjectName.Text = "";
            wnd_CreateNewPrj.rbtn_item.IsChecked = true;
            wnd_CreateNewPrj.Show();
        }
	}
}